﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace Core.ECS.Components
{
    [DataContract]
    public class CTag : IComponent
    {
        public Guid Id
        {
            get => _id; set => _id = value;
        }
        [DataMember]
        private Guid _id;
        [DataMember]
        public string Tag { get; set; }
        public CTag(Guid id)
        {
            _id = id;
            Tag = "Default";
        }
        public CTag(Guid id, string tag)
        {
            _id = id;
            Tag = tag;
        }
        public bool Compare(string tag) => Tag.Equals(tag);
    }
}
